﻿namespace WebMvc.Utils.ConfigurationInfo
{
    public class ConnectionStringOptions
    {
        public string? WriteConnection { get; set; }

        public List<string>? ReadConnectionList { get; set; }

        public override string ToString()
        {
            return $"""
                {nameof(WriteConnection)} = {WriteConnection}, {nameof(ReadConnectionList)} = [{(ReadConnectionList == null ? "null" : string.Join(", ", ReadConnectionList))}]
                """;
        }
    }
}
